package cn.melonlib.graphql.model.support.filter;

import cn.melonlib.graphql.annos.GraphqlField;
import cn.melonlib.graphql.annos.GraphqlType;
import cn.melonlib.graphql.annos.GraphqlTypeDeclare;
import cn.melonlib.graphql.model.enums.GraphqlTypeMode;
import lombok.Data;

import java.util.List;

@Data
@GraphqlType(comment = "双精度浮点类型输入",namespaces = "*",declares = {@GraphqlTypeDeclare(mode = GraphqlTypeMode.INPUT)})
public class GraphqlDoubleFilter {

    @GraphqlField(comment = "像等 [=]")
    private Double eq;

    @GraphqlField(comment = "不等于 [!=, <>] ")
    private Double neq;

    @GraphqlField(comment = "小于 [<]")
    private Double lt;

    @GraphqlField(comment = "大于 [>]")
    private Double gt;

    @GraphqlField(comment = "小于等于 [<=]")
    private Double lte;

    @GraphqlField(comment = "大于等于 [>=]")
    private Double gte;

    @GraphqlField(comment = "包含 数据库查询[in]")
    private List<Double> in;

    @GraphqlField(comment = "不包含 数据库查询[not in]")
    private List<Double> nin;

    @GraphqlField(comment = "空判断 数据库查询[true 为 is null，false 为 is not null]")
    private boolean non;

}
